package com.zfj.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zfj.common.utils.PageUtils;
import com.zfj.gulimall.product.entity.AttrEntity;
import com.zfj.gulimall.product.vo.AttrGroupRelationVo;
import com.zfj.gulimall.product.vo.AttrRespVo;
import com.zfj.gulimall.product.vo.AttrVo;

import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author zhangfujing
 * @email zfjcontrolling@163.com
 * @date 2022-05-21 17:40:49
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params);

	void saveAttr(AttrVo attr);

	PageUtils queryBaseAttrPage(Map<String, Object> params, Long catelogId, String type);

	AttrRespVo getAttrInfo(Long attrId);

	void updateAttr(AttrVo attr);

	List<AttrEntity> getRelationAttr(Long attrgroupId);

	void deleteRelation(AttrGroupRelationVo[] vos);

	PageUtils getNoRelationAttr(Map<String, Object> params, Long attrgroupId);

	/**
	 * 在指定的所有属性集合中，挑出检索属性
	 * @param attrIds
	 * @return
	 */
	List<Long> selectSearchAttrIds(List<Long> attrIds);
}

